package com.yomob.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhaolong
 * @since 2017/8/14.
 */
@Controller
@RequestMapping("/blogging")
public class BloggingController {
    @RequestMapping
    public ModelAndView index(){
        List<String> learnList =new ArrayList<String>();
        learnList.add("blogging");
        ModelAndView modelAndView = new ModelAndView("/blogging");
        modelAndView.addObject("learnList", learnList);
        return modelAndView;
    }
}
